package com.sam4cloud.common.core.enums;

/**
 * @Author: Sam
 * @Date: 2022-12-08 10:19
 * @Description: Http响应码枚举
 */
public enum HttpEnum {
    SUCCESS("200", "成功"),
    SC_BAD_REQUEST("400", "服务异常"),
    SC_UNAUTHORIZED("401", "服务异常"),
    SC_FORBIDDEN("403", "服务异常"),
    ERROR("500", "服务异常"),
    ;

    private String code;
    private String msg;

    HttpEnum(String value, String msg) {
        this.code = value;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
